// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   SubmitTag.java

package com.vandagroup.common.taglib.html;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
import org.apache.struts.util.ResponseUtils;

public class SubmitTag extends TagSupport
{

    Object value;

    public SubmitTag()
    {
        value = null;
    }

    public int doStartTag()
        throws JspException
    {
        String v = null;
        if(value == null)
            v = "提交";
        else
            v = value.toString();
        ResponseUtils.write(pageContext, "<input type=submit name='_tjbtn' value='" + v + "' class=btn>");
        return super.doStartTag();
    }

    public int doEndTag()
        throws JspException
    {
        return super.doEndTag();
    }

    public Object getValue()
    {
        return value;
    }

    public void setValue(Object value)
    {
        this.value = value;
    }
}
